<template>
	<view class="content font_family" v-if="detail">
		<view class="title">
			{{detail.title}}
		</view>
		<u-parse :content="detail.answer"></u-parse>
	</view>
</template>

<script>
	import { faq_detail } from '@/api/page.js'
	export default {
		data() {
			return {
				detail: '',
				query_data: {
					id: ''
				}
			}
		},
		onLoad(e) {
			this.query_data.id = e.id
			this.get_detail()
		},
		methods: {
			get_detail() {
				faq_detail(this.query_data).then(res => {
					if (res.code == 1) {
						this.detail = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 30rpx;

		.title {
			font-size: 36rpx;
			margin-bottom: 20rpx;
		}
	}
</style>